package com.itheima007;

public class Test {
    public static void main(String[] args) {
        Sheep sheep = new Sheep("fasf",10);
        sheep.eat();
        System.out.println(sheep.getName()+" "+sheep.getAge());


        Dog dog = new Dog("hali",4);
        dog.eat();
        System.out.println(dog.getName()+" "+dog.getAge());
    }
}
